package com.example.test.service;

import com.example.test.bean.UserBean;
import com.example.test.bean.UserImgBean;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface UserService {
    UserBean loginIn(String name, String password);
    List<UserBean> getAllUser();
    PageInfo<UserBean> selectUser4Page(Integer page, Integer pageSize);

    int insertUser(UserBean userBean);

    int deleteUser(String id);

    UserBean getUserById(String id);

    int updateUser(UserBean userBean);

    int insertUserImg(UserImgBean userImgBean);
    List<UserImgBean> getUserImgsById(String user_id);
    int delUserImg(String id);
}
